﻿using System;
using Pay.TO;
using Newtonsoft.Json;
using System.Collections.Generic;
using Pay.DTO;

namespace Pay.DTO {
	/// <summary>
	/// 订单查询
	/// </summary>
	[JsonObject(MemberSerialization.OptOut)]
	public class OrderQuery : PageQuery {
        /// <summary>
        /// 
        /// </summary>
		public OrderQuery() { }
		/// <summary>
		/// 商户id
		/// </summary>
		[JsonIgnore]
		public long merchant_id { get; set; }
        /// <summary>
        /// 订单来源 0:系统， 1：海淘乐，2：候鸟,3:398商品
        /// </summary>
        public int? order_type { get; set; }
		/// <summary>
		/// 订单号/支付单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 商户编号
		/// </summary>
		public string merchant_no { get; set; }
		/// <summary>
		/// 订单状态
		/// </summary>
		public OrderStatus order_status { get; set; }
		/// <summary>
		/// 下单时间-开始
		/// </summary>
		public DateTime? start_time { get; set; }
		/// <summary>
		/// 下单时间-结束
		/// </summary>
		public DateTime? end_time { get; set; }
		/// <summary>
		/// 姓名/昵称/手机号
		/// </summary>
		public string q { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public long user_id { get; set; }
        /// <summary>
        /// 分销商Id
        /// </summary>
        public long distribution_id { get; set; }
        /// <summary>
        /// 店铺Id
        /// </summary>
        public long shop_id { get; set; }
        /// <summary>
        /// 订单推送状态
        /// </summary>
        public OrderPushStatus push_status { get; set; }
        /// <summary>
        /// 1 商城 2集市
        /// </summary>
        public int? type { get; set; }
    }

    /// <summary>
    /// 供应商PC 订单查询
    /// </summary>
    public class SPC_OrderQuery : OrderQuery {
        /// <summary>
        /// 订单类型（0：全部，1：自营订单，2：分销订单）
        /// </summary>
        public long order_type { get; set; }
    }


    public class OrderDetail
    {
        public order_dto order { get; set; }
        public List<logistics_details_dto> list { get; set; }
    }

    public class order_shipping_ex {
        /// <summary>
        /// 订单号/支付单号
        /// </summary>
        public string order_no { get; set; }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string ship_order_number { get; set; }
    }
}
